<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>产品列表页</title>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/jquery-easyui-1.8.8/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/jquery-easyui-1.8.8/themes/icon.css">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/jquery-easyui-1.8.8/themes/color.css">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/jquery-easyui-1.8.8/jquery.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/jquery-easyui-1.8.8/jquery.easyui.min.js"></script>


</head>
<body>
	<table id="homework_dg" title="请假信息" class="easyui-datagrid"
		style="width: 1150px; height: 480px"
		url="${param.request.contextPath}/homework/list"
		toolbar="homework_toolbar" pagination="true" rownumbers="true"
		fitColumns="true" singleSelect="true">

		<thead>
			<tr>
				<th field="cb" checkbox="true" align="center"></th>
				<th field="taskId" align="center" align="center">编号</th>
				<th field="startTime" width="50" align="center">作业发布时间</th>
				<th field="endTime" width="50" align="center">作业提交时间</th>
				<th field="type" width="30" align="center">作业类型</th>
				<th field="tehId" width="30" align="center" formatter="tehFormatter">教师编号</th>
			</tr>
			
		</thead>
	</table>


	<script type="text/javascript">
		function tehFormatter(value, row, index) {
			return row.teacher.name;
		}
	</script>

</body>
</html>